/**
 * 	 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *   @author Colin Redmond
 *   Copyright (C) 2011 Colin Redmond
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

package com.cred.industries.platform.model {
	
	/**
	 * settings used to configure application
	 **/
	public final class Config {
		
		/** if we are running the appliction in debug */
		static private var mDebug:Boolean = true;
		
		/** We can use this variable to configure the application for diffren enviroments */
		static private var mMode:String = MODE_AIR;
		
		/** diffrent enviroments we can run in */
		static public var MODE_AIR:String = "MODE_AIR";
		static public var MODE_WEB:String = "MODE_WEB";
		static public var MODE_MOBILE:String = "MODE_MOBILE";
		
		public function Config() {
		}
		
		/**
		 * used to determine if we need to use SWC or swf files
		 * @return if we are to use SWC instead of dynamic loading
		 */
		public static function useSWC():Boolean	{
			
			return mMode == MODE_MOBILE;
		}
		
		/**
		 * used to determine if we are on a mobile platform
		 * @return if we are a mobile platform
		 */
		public static function isMobile():Boolean {
			
			return mMode == MODE_MOBILE || mMode == MODE_MOBILE;
		}
		
		/**
		 * used to determine if we are on the web
		 * @return if we are on the web
		 */
		public static function isWeb():Boolean {
			
			return mMode == MODE_WEB;
		}
	}
}